In probability theory, Shearer's inequality states that if X1, ..., Xd are random variables and S1, ..., Sn are subsets of {1, 2, ..., d} such that every integer between 1 and d lies in exactly r of these subsets, then
where is the Cartesian product of random variables with indices j in (so the dimension of this vector is equal to the size of ).